/**
 * 
 */
package com.toncen.samepms.fisher.filter;

import java.util.List;

import com.toncen.samepms.fisher.condition.EnumStringEqualsCondition;
import com.toncen.samepms.fisher.condition.EnumStringNotEqualsCondition;
import com.toncen.samepms.fisher.formatter.EnumFormatter;
import com.sky.fisher.condition.AbstractCondition;
import com.sky.fisher.filter.Options;
import com.sky.fisher.model.CommonColumnModel;

/**
 * 描述：字符串类型枚举过滤器
 * 
 * @author tch
 * 
 */
public class EnumStringColumnFilter extends EnumColumnFilter {
	private AbstractCondition[] conditons = new AbstractCondition[] { new EnumStringEqualsCondition(), new EnumStringNotEqualsCondition() };

	/**
	 * 
	 */
	public EnumStringColumnFilter() {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.sky.fisher.filter.AbstractColumnFilter#getConditons()
	 */
	@Override
	protected AbstractCondition[] getConditons() {
		return conditons;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.sky.fisher.filter.AbstractColumnFilter#getDefaultCondition()
	 */
	@Override
	public AbstractCondition getDefaultCondition() {
		return new EnumStringEqualsCondition();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.sky.fisher.filter.AbstractColumnFilter#getValueOptions(com.sky.fisher.model.CommonColumnModel)
	 */
	public List<Options> getValueOptions(CommonColumnModel column) throws Exception {
		return EnumFormatter.getEnum(column);
	}

	@Override
	public String getValidateMessage() {
		return null;
	}

	@Override
	public String getValidatePattern() {
		return null;
	}
}
